package com.guiguli.StringJoiner.for_while;

import java.util.Scanner;

public class While {
    public static void main(String[] args) {
        //输入一个树 打印它的倒数
        Scanner sc=new Scanner(System.in);
        int number=sc.nextInt();
        int number2=0;
        while(number!=0){
            number2=number2*10+number%10;
            number/=10;
        }
        System.out.println("反转后为"+number2);
    }
}
